package com.video.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.video.chat.domain.entity.SystemMsgEntity;
import com.video.chat.domain.pojo.SetMsgStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SystemMsgMapper  extends BaseMapper<SystemMsgEntity> {
    @Select("UPDATE system_msg SET is_read = '2' WHERE type = #{type}")
    void updateRead(SetMsgStatus dto);

    @Select("UPDATE system_msg SET revocation= '2' WHERE id = #{id}")
    void revokeChange(Long id);
}
